package business;

import java.util.List;

import models.Department;
import dao.DepartmentDao;
import dao.impl.DepartmentDaoImpl;

public class DepartmentBusiness {
	public DepartmentDao departmentDao;
	
	public DepartmentBusiness(){
		this.departmentDao = new DepartmentDaoImpl();
	}
	
	public List<Department> selectList(int page){
		return this.departmentDao.selectList(page);
	}
	public void insert(Department department){
		this.departmentDao.insertOrUpdate(department);
	}
}
